﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using System.Configuration;
using Combres;
using System.Web.Routing;

namespace PeisongWeb
{
    public class Global : System.Web.HttpApplication
    {

        protected void Application_Start(object sender, EventArgs e)
        {
            RouteTable.Routes.AddCombresRoute("Combres");

            if (ConfigurationManager.AppSettings["EnabledErrorReport"] == "1")
            {
                // Log4net配置文件加载
                System.IO.FileInfo file = new System.IO.FileInfo(Server.MapPath("~/log4net.config"));
                log4net.Config.XmlConfigurator.ConfigureAndWatch(file);
            }
        }

        protected void Session_Start(object sender, EventArgs e)
        {
            
        }

        protected void Application_BeginRequest(object sender, EventArgs e)
        {

        }

        protected void Application_AuthenticateRequest(object sender, EventArgs e)
        {

        }

        protected void Application_Error(object sender, EventArgs e)
        {

        }

        protected void Session_End(object sender, EventArgs e)
        {

        }

        protected void Application_End(object sender, EventArgs e)
        {

        }
    }
}